package common.project.epic.core;

import common.project.epic.db.Content;

//classe relativa al modulo DutyCycle, restituisce i tempi di ascolto e di invio

public class DutyCycle {
	
	
	private Content mContents;
	private int listening;
	private int sending;
	
	
	public DutyCycle(){
		
		this.mContents = new Content();
		this.listening = 5000;
		this.sending = 5000;
		
	}
	
	public void computingTime(){
		
		
		
		int listening = 0;
		int sending = 0;
		this.setListening(listening);
		this.setSending(sending);
	}
	
	public int[] getTime(){
		int[] time = new int[2];
		time[0]= this.getListening();
		time[1]=this.getSending();
		return time;	
	}

	public void setSending(int sending) {
		this.sending = sending;
	}

	public int getSending() {
		return sending;
	}



	public void setListening(int listening) {
		this.listening = listening;
	}



	public int getListening() {
		return listening;
	}
	
	
}
